package com.dd.cloud.user.service.plat;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.plat.TrustDevice;

import java.util.List;

/**
 * @author Lx
 * @version 1.0
 */
public interface ITrustDeviceService extends IService<TrustDevice> {
    /**
     * 验证信任设备
     *
     * @param phone
     * @param userType
     * @param model
     * @return
     */
    boolean verifyDevice(String phone, Integer userType, String model);

    /**
     * 信任设备
     *
     * @param userId
     * @param userType
     * @param model
     */
    void trustDevice(Integer userId, Integer userType, String model, String cid);

    /**
     * 获取医生的cid
     */
    List<String> getCidByDocType(Integer type);
}
